home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2000 November / cd joystick no120 novembre 2000 cd 1.iso / data / demos / gunlok / data1.cab / Program_Executable_Files / scripts / cranium_turret.gsh < prev    next >
Text File  |  2000-08-22  |  1KB  |  50 lines

  1. // defines Turret
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_CRANIUM_TURRET_GSH
  8. #define INCLUDED_CRANIUM_TURRET_GSH
  9.  
  10. #include "lasers.gsh"
  11. #include "defaults.gsh"
  12.  
  13. ////////////////////////////////////////////////////////////////////////////////////
  14.  
  15. hierarchy Hcy_Cranium_Turret
  16. {
  17.     file "units\cranium turret.RIF"
  18.     name "Cranium Turret"
  19.     hotspot "Dum Flash"
  20. }
  21.  
  22. character Chr_Cranium_Turret : Chr_DefaultBaddie
  23. {
  24.     turning speed   0.25
  25.     walking speed   0    // doesn't move
  26.     weapon          enemy laser
  27.     strength        6    // one shot and it's destroyed
  28.     aim             0    // spot on!
  29.     sight angle        90    // in degrees
  30.     sight range     15    // in metres
  31.     hearing range    22    // in metres
  32.     aggression        1    // from 0 to 1
  33.     gun yaw angle    45    // in degrees
  34.     elevation angle 45    // in degrees
  35.     can turn        no    // can only use gun yaw
  36. }
  37.  
  38. role Rol_Cranium_Turret : Rol_DefaultRobot
  39. {
  40.     shape            Hcy_Cranium_Turret
  41.     character        Chr_Cranium_Turret
  42.     
  43.     identifier       "Cranium_Turret"
  44. }
  45.  
  46. ////////////////////////////////////////////////////////////////////////////////////
  47.  
  48. // end wrapper - for preventing multiple or recursive inclusions
  49. #endif // !INCLUDED_CRANIUM_TURRET_GSH
  50.